/* 
	汇总所有的reducer为一个总的reducer 最主要的目的是给store引用
	 store将这样引用：import reducer from './reducers'
	然后export default createStore( reducer, composeWithDevTools(applyMiddleware(thunk)))
*/
//todo 引入combineReducers，用于汇总多个reducer
import {combineReducers} from 'redux'
//引入为Count组件服务的reducer
import count from './count'
//引入为Person组件服务的reducer
import persons from './person'

//汇总所有的reducer变为一个总的reducer  各种reducer的返回值也就是各个文件的state
export default  combineReducers({
	count,         //容器将这样使用  state.count
	persons			// xxx:state.persons    赋值给xxx变量  然后在render的方法里this.props.xxx 引用
})
